package com.zhouyx.userservice.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @title: ConfigProperties
 * @Author: max.zhou1
 * @Date: 2024/9/19 10:55
 * @Version: 1.0
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "mail")
public class MailConfigProperties {

    private String hostname;
    private int port;
    private String from;
    private List<String> defaultRecipients;
    private Map<String, String> additionalHeaders;
    private Credentials credentials;
    private List<Credentials> credentialsList;

    // standard getters and setters
}
